package com.zhiyou100.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import lombok.*;

/**
 * <p>
 * 文件表
 * </p>
 *
 * @author 杨磊
 * @since 2020-10-09
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@EqualsAndHashCode(callSuper = false)
public class TabFile extends Model<TabFile> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "fid", type = IdType.AUTO)
    private Integer fid;

    /**
     * 文件的路径
     */
    private String furl;

    /**
     * 文件大小
     */
    private String fsize;

    /**
     * 文件的md5
     */
    private String fmd5;


    @Override
    protected Serializable pkVal() {
        return this.fid;
    }

}
